const fs = require("node:fs");

const file_dir = process.argv[2];
const file_ext = process.argv[3];

fs.readdir(file_dir,(err,files)=>{
  if(err) return;
  files.forEach((path,index)=>{
    if(path.endsWith("."+ file_ext)){
      console.log(path);
    }
  })
})
